package com.zhuqi.controller;

import cn.hutool.core.util.RandomUtil;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

/**
 * <p>类描述</p>

 * @author zhuqi
 * @since 2023/4/14 14:38
 */
@Controller
@Log4j2
@RequestMapping("index")
@CrossOrigin
public class BaseController {


	/**
	 * 跳转到 socket 页面
	 */
	@GetMapping()
	public String method() {
		ModelAndView modelAndView = new ModelAndView();
		modelAndView.addObject("uid", RandomUtil.randomNumbers(6));
		return "socket.html";
	}
}
